<%@page import="com.team.entity.Project"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page import="com.team.entity.User" %>
 <%@ page import="com.team.util.Const" %>

<html>
  <head>
    
    <title>My JSP 'newContact.jsp' starting page</title>
    <link rel="stylesheet" href="css/prettify.css" />
    <link rel="stylesheet" href="css/bootstrap.min.css" />

  </head>
  
  <body class="body">
  
  <% 
	User user = (User)session.getAttribute(Const.SESSION_USER); 
	Project project =(Project)session.getAttribute(Const.SESSION_PROJ);
 %>
 
  	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a href="#" class="brand">凯盛项目管理系统</a>
				 <ul class="nav pull-right">
						<li><a class="nav pull-right" href="#">用户名： <%=user.getUsername() %></a></li>
				 </ul>
			</div>
		</div>
	</div>
  <div class="container">
  	<div class="row">
  		<div class="span3">
					<div class="well" style="padding: 8px 0;">
						<ul class="nav nav-list">
						  <li class="nav-header"><%=project.getProjName() %></li>
						  <li class="divider"></li>
						  <li ><a href="info.jspx?_m=select&projId=<%=project.getId() %>"><i class="icon-white icon-home"></i>最新动态</a></li>
						  <li><a href="goal.jsp"><i class="icon-flag"></i>目标</a></li>
						  <li><a href="docShare.jspx?_m=select&projId=<%=project.getId() %>"><i class="icon-folder-open"></i>资料库</a></li>
						  <li><a href="fileshare.jsp"><i class="icon-file"></i>文件共享</a></li>
						  <li class="active"><a href="newContact.jspx?_m=select&projId=<%=project.getId() %>"><i class="icon-user"></i>联系人</a></li>
						  <li><a href="newIdea.jspx?_m=select&id=<%=project.getId() %>"><i class="icon-fire"></i>想法</a></li>
						  <li><a href="findBug.jsp"><i class="icon-warning-sign"></i>Bug</a></li>
						  <li><a href="projReset.jsp"><i class="icon-cog"></i>项目设置</a></li>
						</ul>
					</div>
				
		</div>
		<div class="span9">
			<form action="newContact.jspx?_m=save" class="form-horizontal" method="post">
        <fieldset>
          <legend>编辑新联系人</legend>
          <div class="control-group">
            <label for="input01" class="control-label">姓名</label>
            <div class="controls">
              <input name="name" type="text" x-webkit-speech="undefined" id="input01" class="span5"/>
            </div>
          </div>
		   <div class="control-group">
            <label for="input01" class="control-label">公司</label>
            <div class="controls">
              <input name="company" type="text" x-webkit-speech="undefined" id="input01" class="span5"/>
            </div>
          </div>
		  <div class="line"></div>
		   <div class="control-group">
            <label for="input01" class="control-label">手机</label>
            <div class="controls">
              <input name="mobel" type="text" x-webkit-speech="undefined" id="input01" class="span5"/>
            </div>
          </div>
		   <div class="control-group">
            <label for="input01" class="control-label">固话</label>
            <div class="controls">
              <input name="tel" type="text" x-webkit-speech="undefined" id="input01" class="span5"/>
            </div>
          </div>
		  <div class="control-group">
            <label for="input01" class="control-label">邮箱</label>
            <div class="controls">
              <input name="email" type="text" x-webkit-speech="undefined" id="input01" class="span5"/>
            </div>
          </div>
		   <div class="line"></div>
		  <div class="control-group">
            <label for="input01" class="control-label">地址</label>
            <div class="controls">
              <input name="address" type="text" x-webkit-speech="undefined" id="input01" class="span5"/>
            </div>
          </div>
		   <div class="line"></div>
		   <div class="control-group">
            <label for="input01" class="control-label">主页</label>
            <div class="controls">
              <input name="websate" type="text" value="" id="input01" class="span5"/>
			  <p class="help-block">http://www.xxx.com</p>
            </div>
          </div>
		   <div class="control-group">
            <label for="input01" class="control-label">微博</label>
            <div class="controls">
				<select class="span2" name="kind">
					<option></option>
					<option>新浪微博</option>
					<option>腾讯微博</option>
					<option>Twitter</option>
				</select>
				<div class="input-prepend">
					<span class="add-on">@</span><input  name="text" type="text" x-webkit-speech="undefined" size="16" id="prependedInput" class="span2"/>
                </div>
				
            </div>
          </div>
		   <div class="control-group">
            <label for="input01" class="control-label">简介</label>
            <div class="controls">
              <textarea name="textarea" rows="6" class="span5"></textarea>
            </div>
          </div>

          <div class="form-actions">
            <button class="btn btn-primary" type="submit">保存</button>
            <a href="contact.jsp" class="btn">返回</a>
          </div>
        </fieldset>
      </form>          
          	
		</div>
  	</div>
 </div>
  </body>
</html>
